package user;

import java.io.Serializable;

/*
 * @author Γκαμπέρλο Ναϊμ
 * @author Μώτος Διονύσης
 * @author Παπαδημητρίου Δημήτρης
 * @author Παπαδόπουλος Αλέξανδρος p3080138
 * @author Παπαδόπουλος Λεωνίδας p3080139
 */
abstract public class GeneralUser implements Serializable{

    private String email;
    private String password;
    private String telephone;
    private String address;
    private boolean loggedIn;
    private boolean banned;
    private String name;
    private String surname;

    public GeneralUser(String name, String surname, String email, String password, String telephone, String address) {
        this.email = email;
        this.password = password;
        this.telephone = telephone;
        this.address = address;
        this.name = name;
        this.surname = surname;
    }
    

    public boolean isLoggedIn() {
        return loggedIn;
    }

    public void setLoggedIn(boolean loggedIn) {
        this.loggedIn = loggedIn;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public void setPassword(String pass) {
        this.password = pass;
    }

    public String getPassword() {
        return this.password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getName() {
        return this.name;
    }

    public String getSurname() {
        return this.surname;
    }

    public boolean isBanned() {
        return this.banned == true;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSurname(String surname) {
        this.surname = surname;
    }
}
